<?php

namespace app\validate;

use app\base\BaseValidate;

/**
 * 验证器-StoreBasicValidate
 * Class StoreBasicValidate
 * @package app\validate
 */
class StoreBasicValidate extends BaseValidate
{
    protected $rule = [
        'id' => 'require|number|notIn:0',
        'store_desc|店铺介绍' => 'require|max:500',
        'store_scope|店铺经营范围' => 'require|max:500',
        'real_name|负责人姓名' => 'require',
        'contact_phone|联系电话' => 'require',
        'contact_wechat|联系微信' => 'require',
    ];

    //验证场景-审核状态
    public function sceneUpStatus()
    {
        return $this->only(['id', 'status']);
    }

}